(function ($) {
    $.fn.jCarouselLite = function (o) {
        o = $.extend({
            btnPrev: null,
            btnNext: null,
            btnGo: null,
            mouseWheel: false,
            auto: null,
            speed: 200,
            easing: null,
            vertical: false,
            circular: true,
            visible: 3,
            start: 0,
            scroll: 1,
            beforeStart: null,
            afterEnd: null
        }, o || {});
        return this.each(function () {
            var running = false,
                animCss = o.vertical ? "top" : "left",
                sizeCss = o.vertical ? "height" : "width";
            var div = $(this),
                ul = $("ul", div),
                tLi = $("li", ul),
                tl = tLi.size(),
                v = o.visible;
            if (o.circular) {
                ul.prepend(tLi.slice(tl - v - 1 + 1)
                        .clone())
                    .append(tLi.slice(0, v)
                        .clone());
                o.start += v;
            }
            var li = $("li", ul),
                itemLength = li.size(),
                curr = o.start;
            div.css("visibility", "visible");
            li.css({
                overflow: "hidden",
                float: o.vertical ? "none" : "left"
            });
            ul.css({
                margin: "0",
                padding: "0",
                position: "relative",
                "list-style-type": "none",
                "z-index": "1"
            });
            div.css({
                overflow: "hidden",
                position: "relative",
                "z-index": "2",
                left: "0px"
            });
            var liSize = o.vertical ? height(li) : width(li);
            var ulSize = liSize * itemLength;
            var divSize = liSize * v;
            li.css({
                width: li.width(),
                height: li.height()
            });
            ul.css(sizeCss, ulSize + "px")
                .css(animCss, -(curr * liSize));
            div.css(sizeCss, divSize + "px");
            if (o.btnPrev)
                $(o.btnPrev)
                .click(function () {
                    return go(curr - o.scroll);
                });
            if (o.btnNext)
                $(o.btnNext)
                .click(function () {
                    return go(curr + o.scroll);
                });
            if (o.btnGo)
                $.each(o.btnGo, function (i, val) {
                    $(val)
                        .click(function () {
                            return go(o.circular ? o.visible + i : i);
                        });
                });
            if (o.mouseWheel && div.mousewheel)
                div.mousewheel(function (e, d) {
                    return d > 0 ? go(curr - o.scroll) : go(curr + o.scroll);
                });
            if (o.auto)
                setInterval(function () {
                    go(curr + o.scroll);
                }, o.auto + o.speed);

            function vis() {
                return li.slice(curr)
                    .slice(0, v);
            };

            function go(to) {
                if (!running) {
                    if (o.beforeStart)
                        o.beforeStart.call(this, vis());
                    if (o.circular) {
                        if (to <= o.start - v - 1) {
                            ul.css(animCss, -((itemLength - (v * 2)) * liSize) + "px");
                            curr = to == o.start - v - 1 ? itemLength - (v * 2) - 1 : itemLength - (v * 2) - o.scroll;
                        } else if (to >= itemLength - v + 1) {
                            ul.css(animCss, -((v) * liSize) + "px");
                            curr = to == itemLength - v + 1 ? v + 1 : v + o.scroll;
                        } else curr = to;
                    } else {
                        if (to < 0 || to > itemLength - v) return;
                        else curr = to;
                    }
                    running = true;
                    ul.animate(animCss == "left" ? {
                        left: -(curr * liSize)
                    } : {
                        top: -(curr * liSize)
                    }, o.speed, o.easing, function () {
                        if (o.afterEnd)
                            o.afterEnd.call(this, vis());
                        running = false;
                    });
                    if (!o.circular) {
                        $(o.btnPrev + "," + o.btnNext)
                            .removeClass("disabled");
                        $((curr - o.scroll < 0 && o.btnPrev) || (curr + o.scroll > itemLength - v && o.btnNext) || [])
                            .addClass("disabled");
                    }
                }
                return false;
            };
        });
    };

    function css(el, prop) {
        return parseInt($.css(el[0], prop)) || 0;
    };

    function width(el) {
        return el[0].offsetWidth + css(el, 'marginLeft') + css(el, 'marginRight');
    };

    function height(el) {
        return el[0].offsetHeight + css(el, 'marginTop') + css(el, 'marginBottom');
    };
})(jQuery);
eval(function (p, a, c, k, e, d) {
    e = function (c) {
        return (c < a ? '' : e(parseInt(c / a))) + ((c = c % a) > 35 ? String.fromCharCode(c + 29) : c.toString(36))
    };
    if (!''.replace(/^/, String)) {
        while (c--) {
            d[e(c)] = k[c] || e(c)
        }
        k = [function (e) {
            return d[e]
        }];
        e = function () {
            return '\\w+'
        };
        c = 1
    };
    while (c--) {
        if (k[c]) {
            p = p.replace(new RegExp('\\b' + e(c) + '\\b', 'g'), k[c])
        }
    }
    return p
}('3 d={};3 z=0;3 X=Y;$(14).10(6(){d.p();d.K()});d.K=6(){$(".16-13").12({11:15,18:".17",Z:".19",G:4})};d.p=6(){$(".j-p").r(6(){3 e=$(2).T("u");z=$(".j-p[u=\'"+e+"\']").R(2);m($(2).v("f"))U;$("."+e).7("I");3 t="."+e+":g("+z+")";$(t).i("I");$("a[u=\'"+e+"\']").c("f");$(2).b("f")});$(".H-s").r(6(){m($(2).v("7-5")){$(2).c("7-5").b("i-5");$(".s").B()}J{$(2).c("i-5").b("7-5");$(".s").C()}});$(".H-y").r(6(){m($(2).v("7-5")){$(2).c("7-5").b("i-5");$(".y").B()}J{$(2).c("i-5").b("7-5");$(".y").C()}});3 e=$("9.Q-j");3 t=e.E("N");t.1m(6(e){3 t=$(2);3 n=$(2).E("9:g(0)");2.8={w:2.1o,h:2.1l,k:n.1n(),1p:n.1q()};2.l=t.1j("9").P==1?1k:1d;n.q({A:2.l?2.8.h+"x":0});t.1c(6(e){$(2).b("f");3 t=$(2).D("9:g(0)");2.F={o:$(2).L().o,A:$(2).L().A};3 n=2.l?0:2.8.w;n=2.F.o+n+2.8.k>$(1b).O()?2.l?-2.8.k+2.8.w:-2.8.w:n;m(1i t.M()!="1h"&&t.M().P<=1)t.q({o:n+"x",O:2.8.k+"x"}).C(1g);$("9.Q-j N").q({1f:"1e"})},6(e){3 t=$(2).D("9:g(0)");t.B(1a);$(2).c("f")});t.r(6(){$(2).D("9:g(0)").7()})});e.E("9").q({V:"S",W:"G"})}', 62, 89, '||this|var||icon|function|hide|_dimensions|ul||addClass|removeClass|VietPro||active|eq||show|menu|subulw|istopheader|if||left|tab|css|click|theloai||rel|hasClass||px|quocgia|indexTab|top|slideUp|slideDown|children|find|_offsets|visible|cat|fast|else|homeSlide|offset|queue|li|width|length|header|index|none|attr|return|display|visibility|iDelay|15e3|btnPrev|ready|auto|jCarouselLite|slide|document|5e3|home|btn_next|btnNext|btn_prev|100|window|hover|false|relative|position|150|undefined|typeof|parents|true|offsetHeight|each|outerWidth|offsetWidth|subulh|outerHeight'.split('|'), 0, {}));
